import JiraService from '../Services/JiraService';
import CONSTANTDATA from '../Tools/ResConstant';

class JiraControllers {

  async bugPandect(ctx) {
    const ret = await JiraService.pandect();

    if (!ret) {
      ctx.body = ctx.constantResData(CONSTANTDATA.CODE_ERROR);
      return;
    };

    ctx.body = ctx.constantResData(CONSTANTDATA.CODE_SUCCESS, ret);
  };

};

module.exports = new JiraControllers();